<?php
class Form_educlass_add extends QForm
{
  function __construct($action)
  {
    parent::__construct(__CLASS__,$action);
    // 从配置文件载入表单
    $filename = rtrim(dirname(__FILE__), '/\\') . DS . strtolower(__CLASS__).'.yaml';
    
    $this->loadFromConfig(Helper_YAML::loadCached($filename));
    
    $this->addValidations(educlass::meta());
  }
}

?>